home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-20 / paket51.zip / LHA210@.EXE / LHA210.DOC < prev   
Text File  |  1991-02-24  |  30KB  |  847 lines

  1. ------------------------------------------------------------------------
  2.                        Manual for LHA Version 2.10
  3.  
  4.                                                    Ver 2.10  24 Feb 1991
  5. ------------------------------------------------------------------------
  6.                              NIFTY-Serve  SDI00506    HARUYASU YOSHIZAKI
  7.                              ASCII-pcs    pcs02846    Yoshi
  8.                              PC-VAN       FEM12376
  9. ------------------------------------------------------------------------
  10.  
  11.      This is a manual for the first public release of LHA.EXE.  LHA
  12.      is an upward compatible and improved version of LH ver 1.13C.
  13.      Since Microsoft's DOS 5.0 now has an interior command LH (for
  14.      Load High), the name has been changed from LH.EXE to LHA.EXE.
  15.  
  16.  
  17. 0.  To begin with
  18. -----------------
  19.  
  20.      This is a revised version of LH113c.EXE., an archiver which was
  21.      rather slow in execution but tight in compression rate.  I am
  22.      grateful for the support of LH113c's users both in Japan where
  23.      the .LZH file is a standard archived file name and in other
  24.      countries where .LZH has become well-known and used often.  I
  25.      have been  working on this new version for two years since the
  26.      last release of LH113c.EXE.  I am now glad to announce the re-
  27.      lease of LHA.
  28.  
  29.  
  30.      LHA differs from LH113c:
  31.      -----------------------
  32.  
  33.      LHA is better than LH ver 1.13 in compression rate, especially
  34.      with large files.  There are a few exceptions if using rather
  35.      small files.  (Under 1 Kb.)  LHA is faster than LH113c in de-
  36.      compressing, with new static Huffman coding, compared with the
  37.      older dynamic Huffman.  The speed of compression is not as fast
  38.      as I was expecting.  <sigh>
  39.  
  40.      LHA needs more memory than LH113c did.  If there is not enough
  41.      for LHA to work, it may have looser compression rate, although
  42.      it tries to continue execution.  LHA is upward compatible with
  43.      LH113c.  But LH113c is not completely compatible with the LHA
  44.      format.  Please switch from LH113c to LHA as soon as you can.
  45.      With the "/o" option, you can make archives dearchivable by
  46.      LHarc ver 1.xx - otherwise LHarc will complain for "unknown
  47.      method".
  48.  
  49.      LHA is distributed as a free program with copyright reserved.
  50.      There is no restriction for the use within private corporations
  51.      or the use for governmental agencies.  Users must be respon-
  52.      sible for the use of facilities of the software, especially of
  53.      the auto ! batch file (Often called a "Telop file).  The soft-
  54.      ware is distributed as is.  I am not liable for any damage
  55.      caused by the use of this software.  For commercial use, please
  56.      refer to our distribution policy.
  57.  
  58.      You can now proceed to read the complete description of com-
  59.      mands and options.  However, if you are not familiar with what
  60.      an archiver is, please refer to the introductory note LHA.HLP
  61.      written especially for LHA.EXE by Irvin Hoff.
  62.  
  63.  
  64. 1.  Usage
  65. ---------
  66.  
  67.   A.  General Format:
  68.   ==================
  69.  
  70.     LHA <command> [/<option> ARC [[DIR\] [FILE]...]...  [-+012|WDIR]...]
  71.  
  72.  
  73.     <command>: if one is not used, you get the help screen or a list of
  74.                FILE(s).
  75.     <option>:  you may supply one or more of options explained below.
  76.                (needs an  /  or  -  in front, to designate an option)
  77.  
  78.     ARC:       archive name.
  79.     DIR:       base directory name.
  80.     FILE:      File name or full pathname if specified.
  81.     WDIR:      Working Directory name.
  82.  
  83.  
  84.   B.  <command>
  85.   =============
  86.  
  87.    a (Add) compress and add to an archive.
  88.  
  89.      Compress and Add files specified to an archive.  If the named
  90.      archive does not exist, then create one with the name.  LHA
  91.      overwrites any file in the archive by the given file name with
  92.      'a' command.  Compare with 'u' command.
  93.  
  94.      The commands 'a' and 'm' are used to make an archive.
  95.  
  96.      < Example 1 >  LHA a EX *.EXE
  97.  
  98.      LHA makes an archive named EX.LZH from all the files with ex-
  99.      tension 'EXE'.  Extension .LZH is default.
  100.  
  101.  
  102.    u (Update) Compress and Update.
  103.  
  104.      Compress and add files specified to an archive as command 'a'.
  105.      If LHA detects a file with the name same as the one in the
  106.      archive, then LHA selects the new one to add to archive, by
  107.      comparing the time stamp of each.
  108.  
  109.      < Example 2 > LHA u EX *.C
  110.  
  111.      All the FILE(s) with extension '.C' are archived in EX.LZH.
  112.      If you already have an SX.LZH containing a FILE with the same
  113.      name, only the one with newer time stamp is archived.
  114.  
  115.  
  116.    m (Move)
  117.  
  118.      Compress and add to an archive as 'u' command with checking
  119.      time stamps.  The difference is that LHA deletes all the files
  120.      moved into the archive.
  121.  
  122.      < Example 3 > LHA m EX *.C
  123.  
  124.      does  the same as
  125.  
  126.                   LHA u EX *.C
  127.                   del *.C
  128.  
  129.      Watch the second line.  With the /C option, LHA removes all the
  130.      FILE(s) into the ARChive ignoring time stamps.  You may lose
  131.      the one with the older time stamp.
  132.  
  133.  
  134.    f (Freshen)
  135.  
  136.      LHA looks for a FILE with the same name as the FILE in the
  137.      archive.  If it finds one with a newer time stamp, LHA
  138.      rewrites the one in the archive.  'LHA f /c ARC ' will not
  139.      check the time stamp.
  140.  
  141.      < Example 4 > LHA f EX LHA.DOC
  142.  
  143.      You have LHA.DOC compressed and archived in EX.LZH.  You get a
  144.      new LHA.DOC, then you replace the one in the ARChive, also.
  145.  
  146.  
  147.    d (Delete)
  148.  
  149.      LHA deletes a file (or files) in the archive.
  150.  
  151.  
  152.    e (Extract)
  153.  
  154.      LHA extracts FILE(s) from the archive with decompressing.  If
  155.      LHA finds a FILE in the archive with a newer FILE on the same
  156.      dir and having the same name, it skips that FILE(s).  LHA
  157.      extracts FILE(s) from ARChives made by L113C, namely, those
  158.      with the compression ids -lzs-, -lz4-, -lz5-.
  159.  
  160.      <Example 6 > LHA e EX LHA
  161.  
  162.      Extracts all the FILE(s) in the archive 'EX.LZH'.
  163.  
  164.      < Example 7 > LHA e EX *.COM
  165.  
  166.      LHA extracts all the files with extension .COM from 'EX.LZH'.
  167.  
  168.  
  169.   x (eXtract) LHA eXtracts compressed FILE with pathnames.
  170.  
  171.      If LHA can not find any path, then it will create directories.
  172.      FILE(s) must be archived with full-pathnames.  LHA restores the
  173.      entire directory structure.  'LHA e /x1m1 ARC' does the same.
  174.  
  175.      < EXample 8 > LHA x EX
  176.  
  177.      Suppose '\BIN\CG86.EXE' were among the FILE(s) in 'EX.LZH'.  LHA
  178.      creates directory '\BIN' if necessary, and extracts 'CG86.EXE'
  179.      there.
  180.  
  181.  
  182.    p (Print) Print FILE on standard out.
  183.  
  184.      LHA prints FILE decompressing from ARC to standard output.
  185.  
  186.      < Example 9 >  LHA  p ex lha.doc
  187.  
  188.      LHA extracts 'LHA.DOC' from 'EX.LZH' and displays it on your
  189.      terminal.
  190.  
  191.      < Example 10 > LHA p EX LHA.DOC > prn
  192.  
  193.      LHA extracts 'LHA.DOC' from 'EX.LZH' and prints it out from
  194.      your printer.
  195.  
  196.  
  197.    l (List)
  198.  
  199.      LHA lists FILE names in the archive on a line.  A FILE with
  200.      pathname will have a mark '+' on the head of the line.  'LHA
  201.      l /x ARC' shows full-pathnames of FILE(s) in ARC, and in 2 lines
  202.      per FILE.  You need not type 'l' to have the list.
  203.  
  204.      < Example 11 > LHA LHA210.EXE
  205.  
  206.      LHA assumes command 'l' and shows list of FILE(s) archived FILE
  207.      per line.
  208.  
  209.      < Example 11x > LHA /x LHA210.EXE
  210.  
  211.      You get a similar list but full-pathnames are inserted, and
  212.      each FILE is shown on two lines.
  213.  
  214.      NOTE:  Forward slash '/' is used as the pathname separator.
  215.  
  216.  
  217.    v (View)
  218.  
  219.      'LHA v ARC' is the same with 'LHA l /x ARC'.
  220.  
  221.  
  222.    t (Test)
  223.  
  224.      Check the integrity of ARC, by CRC check.
  225.  
  226.      LHA t LHA.EXE or LHA t LHA206.EXE
  227.  
  228.      will announce the authenticity of the file you own.
  229.  
  230.            LHA t LHA.EXE
  231.  
  232.      "This file seems to be ORIGINAL distributed from H.Yoshi."
  233.  
  234.      LHA.EXE tests itself for you.  This guarantees the version you
  235.      have is not hacked by anyone, though it is not the full guaran-
  236.      tee in the present state of art.  You can't check LHA.EXE if
  237.      you have used executable file compressors such as LZEXE, PKLITE
  238.      or DIET.
  239.  
  240.      < Example 12 > LHA t EX
  241.  
  242.      LHA tests integrity of the FILE(s) in 'EX.LZH'.
  243.  
  244.      < Example 13 > LHA t LHA.EXE
  245.  
  246.      LHA checks if LHA.EXE is the original file distributed.
  247.  
  248.  
  249.    s (Self-extract)
  250.  
  251.      LHA makes a Self-Extracting archive from ARC.LZH.  The default
  252.      switch /x0 is assumed when you do not specify.  SFX made with
  253.      the /x0 switch, small model, extracts files on the current
  254.      directory.  You can't activate some programs in the archived
  255.      FILE(s) automatically with small model.  The size of the SFX file
  256.      is smaller than those made with /x1 switch, large model.
  257.  
  258.      The large model SFX has the ability to restore subdirectory
  259.      structures and can automatically start execution from a FILE
  260.      inside the archive.
  261.  
  262.      < Example 14 > LHA s EX
  263.  
  264.      In this case, LHA makes a small model EX.EXE from EX.LZH.
  265.  
  266.  
  267.   C.  </option>
  268.   =============
  269.  
  270.      Each option takes 3 numerical values to define its finer
  271.      actions.  Use 0,1 and 2 to specify.  For some options, the
  272.      values 1 and 2 does the same thing.  You may toggle 0 and 1 by
  273.      '+' and '-" as with LH113c.  You may change switch character
  274.      (option) from  /  to  - if you prefer the '-'.
  275.  
  276.      /x[0|1] (eXtend)
  277.  
  278.  
  279.      LHA uses eXtended FILE names, namely full-pathnames for FILE(s).
  280.  
  281.      You are on the root directory.  Suppose you want to archive the
  282.      FILE '\tc\include\sys\stat.h' in an archive 'ARC.LZH'.  You type
  283.      'LHA a /x1 ARC.LZH \tc\include\sys\stat.h' to store the FILE
  284.      with full-pathname,'\tc\include\sys\stat.h'.  Similarly, you
  285.      have a 2-lined list with full-pathnames with 'l' command.
  286.  
  287.      /p[0|1|2] (Precise)
  288.  
  289.  
  290.      Search file names precisely.
  291.  
  292.      Suppose an ARChive 'TC.LZH' contains both 'STAT.H' and
  293.      'SYS\STAT.H'.  A simple command like 'LHA e TC stat.h' will
  294.      extract both files on the current directory and let one
  295.      override the other.  To avoid such confusion, you can type 'LHA
  296.      e -p TC stat.h' to extract 'STAT.H' only.  While by typing 'LHA
  297.      e -p TC sys\stat.h' you will get 'SYS\STAT.H'.
  298.  
  299.      /c[0|1|2]  (ignore Comparison of time)
  300.  
  301.  
  302.      With commands 'u', 'f', 'e', 'x', LHA ignores the checking of
  303.      time stamps.  With these commands, LHA chooses the newest FILE
  304.      with the same pathname to act on, by default.  This option lets
  305.      LHA ignore the time stamps.
  306.  
  307.  
  308.      /m[0|1|2]  (no Message)
  309.  
  310.  
  311.      ARC.LZH FILE' gives you the newest FILE in your directory.
  312.      'LHA e /m2 ARC.LZH FILE' dearchives every FILE by choosing
  313.      an unused file extension between 000-999.
  314.  
  315.      /a[0|1] (any Attribute)
  316.  
  317.  
  318.      This switch enables LHA to archive FILE(s) with any attributes.
  319.  
  320.      In the process of archiving with default switch /a0, LHA will
  321.      not archive FILE(s) with hidden and system attributes.  FILE(s)
  322.      with read-only attribute is archived with the attribute. With
  323.      this switch on, '/a1', FILE(s) of any attribute are archived
  324.  
  325.      In the process of dearchiving, with /a1, dearchived FILE(s)
  326.      preserve their original attributes. With /a0, you can't
  327.      dearchive files with hidden and system attributes.  Read-only
  328.      FILE(s) are dearchived deprived of their original attribute.
  329.  
  330.      /r[0|1|2] (Recursive)
  331.  
  332.  
  333.      LHA archives and extracts files recursively from subdirect-
  334.      ories.  'Recursively' means LHA searches all FILE(s) from all
  335.      subdirectories under the specified directory if there is any.
  336.  
  337.      There are three different modes for the '/r' switch.
  338.  
  339.      /r0: (non-recursive mode, default)
  340.  
  341.  
  342.      LHA collects files specified by path names only.
  343.  
  344.      /r1:
  345.  
  346.  
  347.      LHA separates the given pathname into a directory name and FILE
  348.      name.  LHA recursively collects FILE(s) with the given name from
  349.      all the directories under the directory specified.
  350.  
  351.      < Example 15 > LHA a /r1 SOURCE.LZH \SOURCE.C\SOURCE\*.H
  352.  
  353.      LHA collects FILE(s) with extension C and H from the directory
  354.      \source and its subdirectories, probably '\SOURCES\SAMPLES\*.C'
  355.      but not '\SOURCE\*.OBJ'.
  356.  
  357.      /r2:
  358.  
  359.  
  360.      LHA recursively collects all the files from all the specified
  361.      subdirectories.  Tree structure of the specified directory is
  362.      archived as it is.
  363.  
  364.      < Example 16 > LHA a /r2x1 a:\*.*
  365.  
  366.  
  367.      NOTE:  LH113c has set /x whenever /r is set in 'e' or 'x'
  368.             commands.  LHA differs from LH113c in that /x is
  369.             not set with /r automatically.
  370.  
  371.      The following questions are the most frequently asked ones:
  372.  
  373.      (1) How do you backup a disk a: ?
  374.  
  375.                         LHA a /r2x1 LZH a:\
  376.  
  377.      (2) Then how do you retrieve all the directories and files on
  378.          b:?
  379.  
  380.                         LHA x ARC.LZH b:\
  381.  
  382.  
  383.      /w[0|1|<Directory Name>] (Work directory)
  384.  
  385.      Specify the directory name where LH makes temporary files.
  386.  
  387.                         LHA a /wd:\  ARC.LZH FILE(s)
  388.  
  389.      set -w switch on.
  390.  
  391.      By default, LHA makes all the temporary files on the directory
  392.      where ARC.LZH is to be made.  It will rename the temporary file
  393.      as ARC.LZH.
  394.  
  395.      LHA makes temporary files on the current directory if no name
  396.      is specified with '/w+'.
  397.  
  398.      When you set Environmental variable 'TMP' this switch is set
  399.      automatically to be 1.
  400.  
  401.      The switch helps LHA when you have not enough room in your base
  402.      directory, or when you have a high speed memory device like RAM
  403.      disk or HARD ram.
  404.  
  405.  
  406.      /n[0|1|2] (No indicator)
  407.  
  408.      In this version, LHA outputs compressing indicator "ooo....."
  409.      to standard error.  The switch is to suppress this output.
  410.  
  411.      /n1: LHA disables output "ooo....." to indicate its progress.
  412.  
  413.      /n2: LHA disables outputs of filename, compression rates.
  414.  
  415.  
  416.      /t[0|1] (Time stamp)
  417.  
  418.      With command a,u,m,f,d reset time stamp of ARC.lzh according to
  419.      the newest file in the archive.  By default, the time stamp of
  420.      an ARC.LZH is the time when the ARC.LZH is made.
  421.  
  422.  
  423.      /z[0|1|2] (Zero compression)
  424.  
  425.      LHA makes an archive without compressing.
  426.  
  427.      /z1: None of the FILE(s) is compressed
  428.  
  429.      /z2: Compress and archive except for the FILE(s) with exten-
  430.           sions:
  431.  
  432.                .ARC, .LZH, .LZS, .PAK, .ZIP, .ZOO.
  433.  
  434.      /z<extension>:  Do not compress FILE(s) with the specified
  435.      extension.  This switch assumes /z2.  You may use wild card to
  436.      specify, and you may or may not put '.' in front of the exten-
  437.      sion.  With '/zdbf' you don't compress FILE(s) with extension
  438.      '.DBF'.  With '/z' you will not have FILE(s) with no extension
  439.      compressed.  You may specify multiple extensions by writing
  440.      sequentailly:
  441.  
  442.                LHA a /ZCOM /ZERO ARChive.LH *.*.
  443.  
  444.      /o[0|1] (Old compatible compression)
  445.  
  446.      LHA makes an archive compatible with the LH113c format.  Even
  447.      in this case, LHA makes tighter compression than LH113c ver
  448.      1xx.  The header id is automatically set to -h1.
  449.  
  450.      /h[0|1|2] (Header level)
  451.  
  452.      Choice of header level, default is /h0.
  453.  
  454.  
  455.      /i[0|1] (don't Ignore case)
  456.  
  457.      Recognize Upper and Lower cases.  LH(arc)s have common header
  458.      format in other OS's where cases are recognized as distinct.
  459.      This option is prepared for dearchiving archives made by other
  460.      OS'.  In the DOS version of LHA, you can't differentiate upper
  461.      and lower when LHA archives FILE(s) into the archive.  Names
  462.      are all stored in upper case.
  463.  
  464.  
  465.      /l[0|1|2] (Long display ).
  466.  
  467.      LHA outputs filenames in different formats when LHA archives
  468.      and dearchives.
  469.  
  470.       /l0 : FILE names only.
  471.       /l1 : Full-pathnames stored or to be stored in archive in 2 lines.
  472.       /l2 : Full-pathname of FILEs accessed by LHA in 2 lines.
  473.  
  474.      < Example 16 > LHA a /r1x1l2 LINK.LZH c:\LINK.*
  475.  
  476.      LHA collect LINK.* with full-pathname from directories below
  477.      c:\, with information from where LHA get these FILE(s).
  478.  
  479.  
  480.      /-[1] (The first letter switch).
  481.  
  482.      LHA recognizes the characters '-' and '@' as the first letter
  483.      of a FILE name.  By default, any file beginning with '@', like
  484.      '@xxx' is recognized as a Response File 'xxx'.  To exit from
  485.      this mode specify '/-[0]'.  You cannot use '--0' in this
  486.      particular case.  LHA thinks '--0' as a file name.
  487.  
  488.  
  489.   D.  Base Directory.
  490.   ==================
  491.  
  492.      Base directory is not the current nor the root directory.  It
  493.      is the directory on which LHA is executed.  Or you may believe
  494.      that you move to this directory and execute LHA from there. You
  495.      may specify a number of directories as your base directories.
  496.  
  497.  
  498.   < Example 17 > LHA x program c:\BIN\ *.EXE *.COM c:\TEMP\ *.MAN *.DOC
  499.                               ~~~~~~~             ~~~~~~~~
  500.  
  501.      Suppose you are on the directory d:\.  You want to extract
  502.      files with extensions .COM and .EXE on c:\BIN, and those with
  503.      extensions .MAN and .DOC on the directory c:\TEMP.  This is
  504.      equivalent to the following set of command lines:
  505.  
  506.              D>C:
  507.              C>CD \BIN
  508.              C>LHA x D:\program *.COM *.EXE
  509.              C>cd \TEMPp
  510.              C>LHA x D:\program *.MAN *.DIX
  511.  
  512.      Naturally, you can't dearchive a single FILE on multiple di-
  513.      rectories.  The directory specified first has the priority.
  514.  
  515.  
  516.   E.  DOS redirection and response file
  517.   =====================================
  518.  
  519.      LHA can't accept too many file names on a command line due to
  520.      MS-DOS's restriction.  To avoid this inconvenience, LHA now
  521.      accepts PIPES and REDIRECTS of DOS.  Besides, LHA can use work
  522.      file called response file to record the names of the files to
  523.      be archived like MAKEFILE for some compilers.
  524.  
  525.  a.  Response File.
  526.  
  527.      The response file name will be marked with the letter '@' as of
  528.      LINK.EXE, which is a text file.  You may just write whatever
  529.      you want LHA to be done on this file.  Response file ignores CR
  530.      code and uses space as a separator.  You may write options in
  531.      the response file but you can't nest, calling other response
  532.      file, file names.
  533.  
  534.  
  535.  b.  DOS Pipes and Redirects.
  536.  
  537.      You may specify the same information supplied by a response
  538.      FILE by using pipes or redirections.  You may create a response
  539.      FILE by redirection.
  540.  
  541.      < Example 18 > LHA l /n1 PARTS > FILE(s)
  542.                     LHA a NEWPARTS @FILE(s)
  543.  
  544.      Make a list of files in the 'PARTS.LZH' archive and use it to
  545.      make a new ARChive 'NEWPARTS.LZH'.  This is done by using the
  546.      response files, after some editing.
  547.  
  548.      < Example 19 > LS | SORTR | LHA a ALL ls -c | LHA a ALL
  549.  
  550.      Make a list of files in a directory by LS.EXE.  Sort file names
  551.      and make a sorted archive ALL.LZH.  Beware of the various for-
  552.      mats from output of LS.EXE.  LS.EXE is supposed to list files
  553.      one name per line without any attributes or time stamps.  LS
  554.      designed after UNIX will do the trick by "ls -c" or "ls -C".
  555.      C or c stand for "sorted by columns".
  556.  
  557.  
  558.   F.  Environmental Variables
  559.   ===========================
  560.  
  561.  a.  LHA and LHARC
  562.  
  563.      LHA overrides LHARC.  This will reset default optional.
  564.  
  565.  
  566.  b.  TMP
  567.  
  568.      Set working directory as -w option.  In case LHA recognizes no
  569.      working directory, it uses the current directory as the working
  570.      directory and creates temporary files on it.
  571.  
  572.  
  573.  c.  TZ
  574.  
  575.      The time zone (EST, PST, etc.) must be set when you archive
  576.      with the header level -h2- and when you dearchive with -h2-. In
  577.      the Eastern Standard Time zone you have to set TIME ZONE with
  578.      the DOS command: set TZ=EST+5.  Remember the default Remember
  579.      the default header level is -h1-, in which case you are all
  580.      set.
  581.  
  582.  
  583.   G.  Exit Codes.
  584.   ==============
  585.  
  586.      LH will return following result codes after batch or other
  587.      processes' execution.
  588.  
  589.      0.  Normal.
  590.  
  591.      1.  CRC error, probably with 'e','x','t' commands.
  592.  
  593.      2.  Fatal error.  Process terminated without transactions.
  594.  
  595.      3.  Failed to write temporary files in the archive.  You may
  596.          find a temporary file LHTEMP)2(.LZH on your working direct-
  597.          ory.  You may rename this file with extension LZH, and use
  598.          it as an archive.
  599.  
  600.  
  601.   H.  Working File Names
  602.   ======================
  603.  
  604.        LHTMP)1(.LZH : Old ARChive renamed.
  605.        LHTMP)2(.LZH : Working file to be renamed as ARChive.
  606.  
  607.  
  608. 2.SFX, Self-Extracting archive
  609. ------------------------------
  610.  
  611.       General Usage:
  612.  
  613.          SFX.EXE [/x] [/!] [/eDIR] [DIR]
  614.  
  615.            /x: do not create new directory.
  616.            /!: auto-execution batch enable.
  617.            [/eDIR],[DIR]; specify directory to extract.
  618.  
  619.  
  620.          SFX.EXE is an executable file with FILE(s) stored in
  621.          the archive to be automatically extracted by exe-
  622.          cution.  All the LHA distribution will be in the
  623.          Self-Extracting (SFX) .EXE-format.  Only LHA.EXE makes
  624.          SFX files from archive *.LZH made by LHA.EXE.  You
  625.          can't make a Self-Extracting executable file from the
  626.          archive made by 'LH113c.1.xx'.
  627.  
  628.      LHA makes two models of SFX files: (a) the small model and (b)
  629.      the large model according to the switch /x0 or /x1, with the
  630.      following special functions.
  631.  
  632.  
  633.    A.  Telop.
  634.    =========
  635.  
  636.      LHA displays any file with name '!' if SFX.EXE finds it
  637.      archived. LHA holds one screen after showing [Y/N] prompt.  LHA
  638.      proceeds to execute if it receives 'Y'.  It quits (aborts)
  639.      execution for 'N'.  (The '!' character was used as it is the
  640.      first printing character.  A file starting with '!' will always
  641.      be the first file in that archive.)
  642.  
  643.  
  644.    B.  Directory Specification.
  645.    ===========================
  646.  
  647.      This is possible only for the large model.  You can name the
  648.      directory on which to execute SFX.EXE.
  649.  
  650.      < Example 20 > LHA210.EXE /xec:\user
  651.  
  652.      LHA extracts FILE(s) in LHA210.EXE on C:\USER.  You may of
  653.      course type:
  654.  
  655.                 LHA e /x0 LHA210.EXE c:\user ,
  656.  
  657.      to keep the TELOP file.
  658.  
  659.  
  660.    C.  Auto Execution
  661.    ==================
  662.  
  663.      This is possible only for large models.
  664.  
  665.      Archive a batch file with the name "!.BAT" and include it in
  666.      the SFX file.  This batch works if and only if you type:
  667.  
  668.                      LHA210 -!
  669.  
  670.      LHA always extracts files on the current directory.  Any
  671.      existing "!.BAT" file is overwritten.  You can't activate an
  672.      existing !.BAT by using the "-!" switch even if there is one on
  673.      the current directory.  The batch file is read if and only if
  674.      it is archived in the SFX file.
  675.  
  676.      Two Models of Self-Extracting files are available:
  677.  
  678.  
  679.  a.  Small Model  (LHA s SFX.LZH)
  680.  
  681.      This is the default model.
  682.  
  683.      LHA ignores the directory structures even if you make the
  684.      archive file with the /x or /r[1|2] switch.  LHA holds only the
  685.      FILE names.  SFX.EXE extracts files to the current directory.
  686.  
  687.      There is no limit on the size of SFX.EXE as there was for
  688.      LH113c.
  689.  
  690.  
  691.  b.  Large Model  (LHA s /x1 SFX.LZH)
  692.  
  693.      You can run a batch file to specify the directory to extract
  694.      files.  You can retrieve original directory structures with
  695.      this model.  You may refrain from creating unexpected
  696.      structures by using the /x switch.
  697.  
  698.  
  699. 3.  Main Differences from LH113c
  700. --------------------------------
  701.  
  702.      LHA is an improved version of LH113c in principle.  You will
  703.      notice a number of differences between the two, when comparing.
  704.      Some of the differences will be mentioned at this time.  (You
  705.      may wish to read the LH113.c manual for a better comparison if
  706.      anything appears confusing.)
  707.  
  708.      FILE names are not sorted when entered into an archives.  They\
  709.      are entered in the order in which they appear in the directory,
  710.      when using wild cards.  (This is different from LH113c.) If you
  711.      cards.  If you specify the order of FILE, then the order is
  712.      reproduced in the archive.  If you add new FILE(s), they will
  713.      be added at the end of the existing files.
  714.  
  715.      There are external utility programs by other authors which you
  716.      may use to sort the FILE names in your directory prior to
  717.      adding them to the archive.  Some programs actually resort the
  718.      archive itself.  Few include LH113c archives as LH113c already
  719.      sorted those.  LHA210 doesn't.  By using a 'pipe' you can type:
  720.  
  721.      < Example 21 >   LS *.C *.H | SORT | LHA a EX.
  722.  
  723.      LHA collects FILE(s) with extensions C and H sorted in the
  724.      archive named 'EX.LZH'.
  725.  
  726.      With LHA, the /r switch does not necessarily activate the /x
  727.      switch in extraction. In this version of LHA, the 'x' command
  728.      is equivalent to using 'E /x1m1', namely, LHA restores all the
  729.      tree structures of subdirectories.
  730.  
  731.      LHARC executed an AUTOLARC.BAT file by key word upon self-
  732.      extracting.  LHA no more uses keyword comparison.  If a SFX
  733.      file contains an !.BAT file, the batch is activated by '-!'
  734.      following the executable file name.
  735.  
  736.      The time stamp of LHA is relatively counted from 1970-01-01,
  737.      00:00:00 UTC by seconds.  You must be careful not to set date
  738.      or time which is illusory, like 00-00-00.  LHA will display
  739.      some indefinite date from overflow of the counter.
  740.  
  741.  
  742. 4.  Our distribution Policy
  743. ---------------------------
  744.  
  745.      This software, this document and LHA.EXE, is a copyright-
  746.      reserved free program.  You may use, copy and distribute this
  747.      software free of charge under the following conditions.
  748.  
  749.   1.  Never change Copyright statement.
  750.  
  751.   2.  The enclosed documents must be distributed with as a package.
  752.  
  753.   3.  When you have changed the program, or implemented the program
  754.       for other OS or environment, then you must specify the part
  755.       you have changed.  Also make a clear statement as to your name
  756.       and MAIL address or phone number.
  757.  
  758.   4.  The author is not liable for any damage on your side caused by
  759.       the use of this program.
  760.  
  761.   5.  The author has no duty to remedy for the deficiencies of the
  762.       program.
  763.  
  764.   6.  When you are to distribute this software with publications or
  765.       with your product, you have to print the copyright statement
  766.       somewhere on the disk or on the package.  You cannot
  767.       distribute this software with copyprotected products.
  768.  
  769.  
  770.           As long as those conditions are satisfied, you do not
  771.           need to get the author's permission to use or to dis-
  772.           tribute the software.
  773.  
  774.  
  775. 5.  How to contact the author.
  776. ------------------------------
  777.  
  778.      Please send MAIL to Forum flabo on Nifty Serve.  Go Nifty on
  779.      CompuServe and read the instructions there.  Your inquiries or
  780.      your questions are to be addressed to the one of the above
  781.      Nifty forums.  Direct MAIL to the author.
  782.  
  783.     My mail address :  SDI00506 | PFF00253 on Nifty Serve.
  784.                        pcs02846               ASCII-NET pcs.
  785.                        FEM12376               PC-VAN.
  786.  
  787.     Oversea Users may send inquiries, also, to K.Okubo to the address:
  788.                        [74100,2565]        on Compuserve,
  789.                        K.Okubo                Genie,
  790.                        c00236@sinet.ad.jp.    INTERNET,CSNET etc.
  791.  
  792.  
  793. 6. Acknowledgements
  794. -------------------
  795.  
  796.      I used the following softwares distributed on BBS.
  797.  
  798.      1. LSI-C86 ver 3.20 evaluation copy, from LSI Japan.
  799.  
  800.      2. A-MACROS /Structured Assembler Macros, from AMSCLS.INC
  801.         (c) Hortense S. Endoh 1986,1987 ver.2.10. I appreciate
  802.         the public distribution of these excellent softwares.
  803.  
  804.      What have I done in these days of rapidly changing software
  805.      technologies?  My LH113c has contributed for the improvements
  806.      of similar products such as PKZIP(tm) and PAK(tm).  Even with
  807.      my modest Japanese estimate, I can be proud of this achievement
  808.      at this time.  I thank all those people who supported and used
  809.      LH113c - voices of users have always been a constant encourage-
  810.      ment to me.
  811.  
  812.         I express my gratitude to Haruhiko Okumura and members
  813.         of SIG Science of PCVAN for the improvements of algo-
  814.         rithms,
  815.  
  816.         to K.Okubo who introduced and supported LH113c on over-
  817.         sea networks such as CompuServe and GEnie.
  818.  
  819.         to Irv Hoff who worked with Kenjiro Okubo on reviewing
  820.         the English version for spelling, grammar and English
  821.         phrasing.
  822.  
  823.         to K.Miki who introduced me to archivers and hold a
  824.         place for experiments,
  825.  
  826.         to members of LSI-Japan who offered excellent versions
  827.         of LSI-C, to the members of Forum FHONYAKU who prepared
  828.         the English manual, and finally to all who used LH113c
  829.         and supported it.
  830.  
  831.  
  832. 7.  Reference
  833. -------------
  834.   1.  Knuth, D.E., Dynamic Huffman Coding, J.Algorithms, 6:163-180.
  835.   2.  Kurita, T.   Harddisk Cook Book.  1987 Shoeisha,Tokyo.
  836.   3.  Kurita, T.  Tool Box of Coputing, Huffman Coding, bit
  837.       70:100-101,1988.
  838.   4.  Okumura,K.,Masuyama,K.,Miki,K.  Practice and theory of Data
  839.       Compression.  The Basic, 70(March):1-65,1989.
  840.   5.  Fiala,E.R., and Greene,D.H., Data Compression with Finite Win-
  841.       dows, Comm.ACM, 32:490-595,1989.
  842.   6.  Okumura,H., and Yoshizaki,H.  Introduction to  Compression
  843.       Algorithm, C Magazine 3:1:44-68,1991.
  844.  
  845.                               - end -
  846.  
  847.